package com.jinyijia.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * Created by yangrd on 2018/3/8
 **/
@Data
@Configuration
@ConfigurationProperties("jinYiJia")
public class JinYiJiaProperties {

    private OAuth2 oauth2;

    private Gateway gateway;


    @Data
    public static class OAuth2{
        private String path;

        private String logoutSuccessUrl;
    }

    @Data
    public static class Gateway{
        private String path;
    }

}
